<?php
require_once('../../../wp-load.php');


global $current_user;

$post_types=get_post_types('','names'); 
foreach ($post_types as $post_type ) {
  echo '<p>'. $post_type. '</p>';
}

echo '<pre>';
print_r($current_user);




?>